import request from '@/utils/request'


// 查询菜单下拉树结构
export function treeselect() {
  return request({
    url: '/wechat/employeetype/treeselect',
    method: 'get'
  })
}

export function treeselectByType(query) {
  return request({
    url: '/wechat/employeetype/treeselect',
    method: 'get',
    params: query
  })
}

// 查询从业人员标签列表
export function listEmployeetype(query) {
  return request({
    url: '/wechat/employeetype/list',
    method: 'get',
    params: query
  })
}

// 查询从业人员标签详细
export function getEmployeetype(employeeTypeId) {
  return request({
    url: '/wechat/employeetype/' + employeeTypeId,
    method: 'get'
  })
}

// 新增从业人员标签
export function addEmployeetype(data) {
  return request({
    url: '/wechat/employeetype',
    method: 'post',
    data: data
  })
}

// 修改从业人员标签
export function updateEmployeetype(data) {
  return request({
    url: '/wechat/employeetype',
    method: 'put',
    data: data
  })
}

// 删除从业人员标签
export function delEmployeetype(employeeTypeId) {
  return request({
    url: '/wechat/employeetype/' + employeeTypeId,
    method: 'delete'
  })
}

// 导出从业人员标签
export function exportEmployeetype(query) {
  return request({
    url: '/wechat/employeetype/export',
    method: 'get',
    params: query
  })
}